package com.atguigu.day08.HomeWork.HomeWork1;

/**
 * @version 1.0
 * @Author 马冰
 * @Date 2024/11/8 19:35
 * @注释
 */
public class HomeWork1 {
    private String name;//姓名
    private char gender;//性别
    private int age;//年龄
    private double salary;//薪资
    private String telephone;//电话
    private String mailbox;//邮箱

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public char getGender() {
        return gender;
    }

    public void setGender(char gender) {
        this.gender = gender;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getMailbox() {
        return mailbox;
    }

    public void setMailbox(String mailbox) {
        this.mailbox = mailbox;
    }

    @Override
    public String toString() {
        return name + "\t\t" + gender + "\t\t" + age + "\t\t" + salary + "\t\t\t" + telephone + "\t\t\t" + mailbox;
    }
}
